V=5;
Ur=5;
Uc=0;
T=1e-3;
R=150;
C=50e-6;
kmax=0.1/T;
for k=1:kmax
    Uc=(T*V+R*C*Uc)/(R*C+T);
    Ur=V-Uc;
    Ucmas(k)=Uc;
       
end
plot(1:kmax,Ucmas)